import request from '@/utils/request'

// 查询门禁卡记录列表
export function listCommunityDoorCard(query) {
  return request({
    url: '/system/communityDoorCard/list',
    method: 'get',
    params: query
  })
}

// 查询门禁卡记录详细
export function getCommunityDoorCard(id) {
  return request({
    url: '/system/communityDoorCard/' + id,
    method: 'get'
  })
}

// 新增门禁卡记录
export function addCommunityDoorCard(data) {
  return request({
    url: '/system/communityDoorCard',
    method: 'post',
    data: data
  })
}

// 修改门禁卡记录
export function updateCommunityDoorCard(data) {
  return request({
    url: '/system/communityDoorCard',
    method: 'put',
    data: data
  })
}

// 删除门禁卡记录
export function delCommunityDoorCard(id) {
  return request({
    url: '/system/communityDoorCard/' + id,
    method: 'delete'
  })
}

// 导出门禁卡记录
export function exportCommunityDoorCard(query) {
  return request({
    url: '/system/communityDoorCard/export',
    method: 'get',
    params: query
  })
}